package com.guigu.erp.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.erp.mapper.SystemMenusMapper;
import com.guigu.erp.pojo.SystemMenus;
import com.guigu.erp.service.SystemMenusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName:SystemMenusServiceImpl
 * Package:com.guigu.erp.service.impl
 * Description:
 *
 * @Date:2024/5/5 10:21
 * @Author:chenchong
 */
@Service
public class SystemMenusServiceImpl extends ServiceImpl<SystemMenusMapper, SystemMenus> implements SystemMenusService {
    @Autowired
    private SystemMenusMapper systemMenusMapper;

    @Override
    public List<SystemMenus> selById() {
        return systemMenusMapper.getById();
    }

    @Override
    public List<SystemMenus> getChildren(Integer pid) {
        return systemMenusMapper.getChildren(pid);
    }


}
